import request from '@/server'

export const queryAddressListApi = () => {
  return request.get({
    url: '/snsh/address/queryList'
  })
}

export const addAddressApi = (data) => {
  return request.post({
    url: '/snsh/address/save',
    data
  })
}

export const updateAddressApi = (data) => {
  return request.post({
    url: '/snsh/address/update',
    data
  })
}

export const deleteAddressApi = (params) => {
  return request.get({
    url: '/snsh/address/delete',
    params
  })
}

export const queryOneAddressApi = (params) => {
  return request.get({
    url: '/snsh/address/queryOne',
    params
  })
}
